﻿
--[[
   @brief    repair_game desc
   @author   farleywen
   @version  1.0
   @date     2015-12-18
--]]

repair_game_desc = {
    module_name = 'repair_game',
    events = {
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.fix_toolbox.ON_PROGRESS,
                    callback = "repair_game_control.get_gamefix_on_progress"
                }
            },
            lua_event = 
            {
                {
                    id = tool_box_event.OPEN_REPAIR_GAME_PAGE ,
                    callback = "repair_game_control.open_repair_game_page"
                }
            },
            reg_service = {
                {
                    id = 'i_open_repair_game_wnd',
                    callback = "repair_game_control.open_repair_game_wnd"
                },
                {
                    id = 'i_close_repair_game_wnd',
                    callback = "repair_game_control.close_repair_game_wnd"
                },
                {
                    id = 'i_service_get_repair_info',
                    callback = "repair_game_control.get_repair_info"
                },
                {
                    -- 打开游戏修复界面
                    id = 'i_service_unified_repair_game',
                    callback = "repair_game_control.on_service_unified_repair_game"
                    -- data = { game_id = x }
                }
            },
            listen_broadcast = 
            {
                {
                    id = 'Msg_MainWndShow',
                    callback = 'repair_game_control.on_main_wnd_show'
                },
            },
            lua_file = 'tool_box\\repair_game\\control.lua'
        }
    }
};

desc_mgr.add(repair_game_desc);
